<h2 class="group">
	그룹 관리
	<button type="button" class="add" onclick="move('{CFG->PATH->WWWADMIN}/group/add')">추가</button>
</h2>
<section class="default">
	<script>
		$(function() {
			$(".table_delete").click(function(){
				if(!confirm("정말로 삭제하시겠습니까?")) return false;
			});
		});
	</script>
	
	<table class="table">
		<caption>
			그룹관리
		</caption>
		<colgroup>
			<col class="t_chk" />
			<col />
			<col class="t_group_date" />
			<col class="t_etc" />
		</colgroup>
		<thead>
			<tr>
				<th scope="col"><input type="checkbox" name="chk[]" /></th>
				<th scope="col">그룹명</th>
				<th scope="col">생성일</th>
				<th scope="col">비고</th>
			</tr>
		</thead>
		<tbody>
			{? list}
				{@ list}
			<tr>
				<td class="txt_center"><input type="checkbox" name="chk[]" /></td>
				<td><a href="view/{.value_->g_seq}">{.value_->g_name}</a></td>
				<td class="txt_center">{.value_->cdate}</td>
				<td class="txt_center">
					<a href="modify/{.value_->g_seq}">
						<img src="{CFG->PATH->IMAGE}/icons/pencil.png" alt="수정" />
					</a>
					&nbsp;
					{? .value_->g_delete == 1}
					<a href="doDelete/{.value_->g_seq}">
						<img src="{CFG->PATH->IMAGE}/icons/delete.png" alt="삭제" class="table_delete" />
					</a>
					{/}
				</td>
			</tr>
				{/}
			{:}
			<tr>
				<td colspan="4" class="txt_center no_data">
					등록된 그룹이 없습니다. <a href="{CFG->PATH->WWWADMIN}/group/add" class="icon_add_btn">추가</a>
				</td>
			</tr>
			{/}
		</tbody>
	</table>
</section>